<?php

namespace app\health\model\healthPro;

use think\Model;
use think\model\relation\BelongsTo;

class UserEquity extends Model
{
    // 表名
    protected $name = 'user_equity';

    protected $connection = 'database.pajk';

    protected $type = [
        'type' => 'integer'
    ];

    /**
     * 关联产品信息
     * @Author 张旭鹏
     * @DateTime 2023-07-21
     */
    public function interests(): BelongsTo
    {
        return $this->belongsTo(Interests::class, 'sku_code', 'sku_code');
    }
}
